<template>
<web-view :src="src"></web-view>
</template>

<script>
var app = getApp();

export default {
  data() {
    return {
      src: ""
    };
  },

  components: {},
  props: {},
  onLoad: function (o) {
    var e = app.globalData.zyzId,
        i = "";
    if (o.linkUrl && 1 == o.linkLogin) i = o.linkUrl.indexOf("?") > -1 ? decodeURIComponent(o.linkUrl) + "&app_zyzid=" + e : decodeURIComponent(o.linkUrl) + "?app_zyzid=" + e, console.log(i);else {
      if (!o.linkUrl || 0 != o.linkLogin) return void uni.navigateBack();
      i = "" + decodeURIComponent(o.linkUrl);
    }
    this.setData({
      src: i
    });
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {},
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
  onShareAppMessage: function () {
    return {
      title: "让公益更生活 让生活更公益",
      path: "/pages/index/index",
      imageUrl: "/static/images/zyh_logo.jpg"
    };
  },
  methods: {}
};
</script>
